﻿@model System.Web.Mvc.HandleErrorInfo

@{
    ViewBag.Title = "Error: Booking";
    string controlerName = "";
    if (Model != null)
    {
        controlerName = Model.ControllerName;
    }
}
<h1>Error: Booking</h1>

<h2>
    Sorry, an error occurred while processing your request.
</h2>
<div class="errormsg">
    @{
        if (Model != null && Model.Exception != null) 
        {
            @Html.Raw("<h4>" + Model.Exception.Message.ToString() + "<h4/>");

            if (Model.Exception.InnerException != null) 
            {
                Exception e = Model.Exception.InnerException;
                while (e != null) 
                {
                    @Html.Raw("<code>" + e.Message + "</code><br/>");
                    e = e.InnerException;
                }
            }
        }
    }

@{#if TRACE}
    <pre style="word-wrap:break-word;">
        @Html.Raw(Model.Exception.ToString());
    </pre>
</div>
@{#endif}

<div style="display:block;float:right; width:100%">
    <span style="float:right;margin:10px;">@Html.ActionLink("Back", "Index", controlerName)</span>
</div>
